<template>
  <el-form :model="form" :label-position="labelPosition" label-width="90px" :inline="true" class="demo-form-inline">


    <el-form-item label="*建设方式：">
      <!-- <SelectOption :options="options" @change-value="changeValue4"> </SelectOption> -->
    </el-form-item>

    <el-form-item label="*总预算：">
      <!--  <el-input v-model="form.year" /> -->
      <span class="unit">万</span>
    </el-form-item>


  </el-form>
</template>
<script lang="ts">
import { ref, reactive } from 'vue'
// import SelectOption from '@views/budget/components/selectOption/index.vue'
import { useStore } from 'vuex'
export default {
  components: {
    // SelectOption,
  },
  setup() {
    const store = useStore()
    const labelPosition = ref('left')
    const form = reactive(store.state.technologyStrength.innovateForm)

    const changeValue = (item) => form.conUnit = item.value
    const changeValue1 = (item) => form.headBy = item.value
    const changeValue2 = (item) => form.level = item.value
    const changeValue3 = (item) => form.type = item.value
    const changeValue4 = (item) => form.way = item.value
    const changeValue5 = (item) => form.plaUnit = item.value

    const options = [
      {
        value: 'Option1',
        label: 'Option1',
      },
      {
        value: 'Option2',
        label: 'Option2',
      },
      {
        value: 'Option3',
        label: 'Option3',
      },
      {
        value: 'Option4',
        label: 'Option4',
      },
      {
        value: 'Option5',
        label: 'Option5',
      },
    ]

    const tags = ref([
      { name: 'Tag 1', type: '' },
      { name: 'Tag 2', type: 'success' },
      { name: 'Tag 3', type: 'info' },
      { name: 'Tag 4', type: 'warning' },
      { name: 'Tag 5', type: 'danger' },
    ])

    return {
      labelPosition,
      form,
      options,
      tags,

      changeValue,
      changeValue1,
      changeValue2,
      changeValue3,
      changeValue4,
      changeValue5
    }
  },
}
</script>
<style lang="scss" scoped>
.demo-form-inline .el-form-item {
  width: 30%;
}

/deep/.el-date-editor.el-input {
  width: 100%;
}

/deep/.el-date-editor.el-input__inner {
  width: 100%;
}

/deep/.demo-form-inline .el-select {
  width: 100%;
  margin: 0;
}

.el-select {
  width: 100%;
  margin: 0;
}


.selectLabel {
  width: 80%;
  height: 40px;
  line-height: 40px;
  padding: 0 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  display: inline-block;
}

.addLabel {
  display: inline-block;
  width: 120px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  background-color: #169BD5;
  border-radius: 6px;
  color: #fff;
  margin-left: 15px;
}
</style>
  